home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group00b.txt / 000086_icon-group-sender_Mon Oct 23 08:17:23 2000.msg < prev    next >
Internet Message Format  |  2001-01-03  |  2KB

  1. Return-Path: <icon-group-sender>
  2. Received: (from root@localhost)
  3.     by baskerville.CS.Arizona.EDU (8.11.1/8.11.1) id e9NFCxh18286
  4.     for icon-group-addresses; Mon, 23 Oct 2000 08:13:00 -0700 (MST)
  5. Message-Id: <200010231513.e9NFCxh18286@baskerville.CS.Arizona.EDU>
  6. From: symbiot@my-deja.com
  7. X-Newsgroups: comp.lang.icon
  8. Subject: How to "declare" a string?
  9. Date: Sat, 21 Oct 2000 19:42:20 GMT
  10. X-Article-Creation-Date: Sat Oct 21 19:42:20 2000 GMT
  11. X-Http-User-Agent: Mozilla/4.7 [en] (WinNT; I)
  12. X-Http-Proxy: 1.0 x73.deja.com:80 (Squid/1.1.22) for client 209.217.195.15
  13. X-MyDeja-Info: XMYDJUIDsymbiot
  14. To: icon-group@cs.arizona.edu
  15. Errors-To: icon-group-errors@cs.arizona.edu
  16. Status: RO
  17. Content-Length: 976
  18.  
  19. Greetings:
  20.  
  21. Another question that "should" be simple....but I can't seem to figure
  22. it out.
  23.  
  24. I have the statement....
  25.  
  26. UPPER[index]  := &ucase[find(data[index],&lcase)]
  27.  
  28. ....which is giving an error:
  29.  
  30. Traceback:
  31.    main()
  32.    {(variable = &null)[1]} from line 8 in noname.icn
  33.  
  34. best I can tell, it is choking because UPPER has not been "declared".
  35. But I can't find anywhere how to "declare" a string. In fact, all the
  36. references I find talk about how ICON doesn't NEED "declarations" in the
  37. traditional sense of a programming language. Soooo...uhhh....???
  38.  
  39. As a secondary question, this is part of a program to converst a string
  40. to all uppercase. Right now I'm doing in a WHILE...DO loop. But
  41. something tells me there's amcuh more efficient way to do it (with EVERY
  42. perhaps?) Any suggestions?
  43.  
  44. Thanks!!
  45.  
  46.  
  47.  
  48. --
  49. "Wife who put husband in doghouse, soon find him in cathouse."
  50.                             -- Wisdom of the Tao
  51.  
  52.  
  53. Sent via Deja.com http://www.deja.com/
  54. Before you buy.
  55.